package securityguy;

public class SecurityReport implements Observer, DisplayElement {

    int code;
    Subject report;

    public SecurityReport(Subject report) {
        this.report = report;
        report.registerObserver(this);
    }

    @Override
    public void update(int code) {
        this.code = code;
        display();
    }

    @Override
    public void display() {
        System.out.println("Security guy says:" + code);
    }
}
